<extend name="Base/commoncenter"/>

<block name="body">
    <!----第一次使用还没有包裹----> 
    <div class="data-table table-striped">
        <form action="{:U('ordercreate')}" method="post">
             <input type='hidden' name='wid' value='{$wid}'>
        <div class="row" style="margin-bottom: 30px;">
            <div class="col-md-10">
                <ul class="nav nav-pills" role="tablist">
                    <li role="presentation" <eq name="type" value="-1">class="active"</eq>><a href="{:U('package?type=-1&WID='.$wid.'')}">全部</a></li>
                    <li role="presentation" <eq name="type" value="10">class="active"</eq>><a href="{:U('package?type=10&WID='.$wid.'')}">预报入库</a></li>
                    <li role="presentation" <eq name="type" value="1000">class="active"</eq>><a href="{:U('package?type=1000&WID='.$wid.'')}">抵达仓库</a></li>
                    <li role="presentation" <eq name="type" value="2000">class="active"</eq>><a href="{:U('package?type=2000&WID='.$wid.'')}">入库完毕/<b style="color: red">申请转运</b></a></li>
                    <li role="presentation" <eq name="type" value="3000">class="active"</eq>><a href="{:U('package?type=3000&WID='.$wid.'')}">打包称重</a></li>
                    <li role="presentation" <eq name="type" value="4000">class="active"</eq>><a href="{:U('package?type=4000&WID='.$wid.'')}">等待付款</a></li>
                    <li role="presentation" <eq name="type" value="5000">class="active"</eq>><a href="{:U('package?type=5000&WID='.$wid.'')}">等待发货</a></li>
                    <li role="presentation" <eq name="type" value="6000">class="active"</eq>><a href="{:U('package?type=6000&WID='.$wid.'')}">运输途中</a></li>
                    <li role="presentation" <eq name="type" value="7000">class="active"</eq>><a href="{:U('package?type=7000&WID='.$wid.'')}">签收完毕</a></li>
                </ul>
            </div>
            <div class="col-md-2"><input type="submit" value="+ 申请转运出库" class='btn btn-success <neq name="type" value="2000" >disabled</neq>'></div>
        </div>
             <hr/>
             <div style="padding: 5px;background-color: #A7E5DA">
        <table class="table table-striped" style="background-color: #fff">
            <thead>
                <tr>
                    <th class="row-selected row-selected"></th>
                    <th class="">仓库名称</th>
                    <th class="">包裹名称</th>
                    <th class="">申报价值</th>                
                    <th class="">包裹重量参考</th>             
                    <th class="">创建日期</th>
                    <th class="">状态</th>                  
                </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                        <td><eq name="vo.status" value="2000"><input class="ids" type="checkbox" name="pid[]" value="{$vo.id}" /></eq></td>
                        <td>[{$vo.wid|get_warehouse_country}] {$vo.wid|get_warehouse_name}</td>
                        <td>{$vo.id}#<strong>{$vo.name}  </strong><br/>{$vo.remark}</td>
                        <td>{$vo.price}</td>
                        <td><gt name="vo.weight" value="0">秤重：{$vo.weight|get_kg}Kg</gt>
                            <br/>
                            <gt name="vo.bulkfactor" value="0">体积重：{$vo.bulkfactor|get_kg}Kg</gt>
                            
                        </td>
                        <td><span>{$vo.createdate|time_format}</span></td>		 
                        <td>{$vo.status_text}<i class='glyphicon glyphicon-info-sign' style='color: #D5D5D5;padding-left: 3px;'></i>
                             <div class="progress">
                                <div class="progress-bar progress-bar-success progress-bar-striped active"  role="progressbar" aria-valuenow="{$vo.status}" aria-valuemin="0" aria-valuemax="7000" style="width: {$vo.status|get_baifengbi}%">
                                    <span class="sr-only">45% Complete</span>
                                </div>
                            </div>
                     
                        </td>    
                        
                    </tr>
                </volist>
                <else/>
                <td colspan="10" class="text-center"> 暂时还没有数据! </td>
            </notempty>
            </tbody>
        </table>
                 </div>
    </div>
    <div class="page">
        {$_page}
    </div>
    </form>


</block>